import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import axios from "axios"; // import VueAxios from "vue-axios"; // Vue.use(VueAxios, axios);
import ElementUI from "element-ui";
import "element-ui/lib/theme-chalk/index.css";
import "./assets/common.css";

import VueQuillEditor from "vue-quill-editor";
import "quill/dist/quill.core.css";
import "quill/dist/quill.snow.css";
import "quill/dist/quill.bubble.css";
Vue.use(VueQuillEditor);

Vue.prototype.axios = axios.create({
  baseURL: "http://localhost:8080/",
  withCredentials: true,
  headers: {
    // 'Content-Type': 'application/x-www-form-urlencoded'
    "Content-Type": "application/json"
  },
  timeout: 10000
  // transformRequest: [function (data) {
  //   data = JSON.stringify(data)
  //   return data;
  // }]
});

Vue.prototype.$userinfo = {};
Vue.config.productionTip = false;
Vue.use(ElementUI);

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount("#app");
